package com.yx.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 提问或推荐
 * </p>
 *
 * @author yx
 * @since 2023-02-14
 */
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pId", type = IdType.AUTO)
    private Integer pId;

    @TableField(value = "titleName")
    private String titleName;

    @TableField(value = "pImg")
    private String pImg;
//    @ApiModelProperty(value = "图片地址字段映射")
//    private String imgAddress;

    @TableField(value = "pDescribe")
    private String pDescribe;

    @TableField(value = "pTime")
    private String pTime;

    @TableField(value = "replyNums")
    private Integer replyNums;

    @TableField(value = "viewNums")
    private Integer viewNums;

    @TableField(value = "tId")
    private Integer tId;

    @TableField(value = "uId")
    private Integer uId;

    @TableField(value = "wId")
    private Integer wId;

    @TableField(value = "isUpload")
    private Integer isUpload;
    public Integer getpId() {
        return pId;
    }
    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getTitleName() {
        return titleName;
    }
    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public String getpImg() {
        return pImg;
    }
    public void setpImg(String pImg) {
        this.pImg = pImg;
    }

    public String getpDescribe() {
        return pDescribe;
    }
    public void setpDescribe(String pDescribe) {
        this.pDescribe = pDescribe;
    }

    public Integer getReplyNums() {
        return replyNums;
    }
    public void setReplyNums(Integer replyNums) {
        this.replyNums = replyNums;
    }

    public Integer getViewNums() {
        return viewNums;
    }
    public void setViewNums(Integer viewNums) {
        this.viewNums = viewNums;
    }

    public String getpTime() {
        return pTime;
    }
    public void setpTime(String pTime) {
        this.pTime = pTime;
    }

    public Integer getuId() {
        return uId;
    }
    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer gettId() {
        return tId;
    }
    public void settId(Integer tId) {
        this.tId = tId;
    }

    public Integer getwId() {
        return wId;
    }
    public void setwId(Integer wId) {
        this.wId = wId;
    }

    public Integer getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(Integer isUpload) {
        this.isUpload = isUpload;
    }

    @Override
    public String toString() {
        return "Post{" +
                "pId=" + pId +
                ", titleName='" + titleName + '\'' +
                ", pImg='" + pImg + '\'' +
                ", pDescribe='" + pDescribe + '\'' +
                ", pTime=" + pTime +
                ", replyNums=" + replyNums +
                ", viewNums=" + viewNums +
                ", tId=" + tId +
                ", uId=" + uId +
                ", wId=" + wId +
                ", isUpload=" + isUpload +
                '}';
    }
}
